package com.kczd.jinlan.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;

import com.kczd.jinlan.R;
import com.kczd.jinlan.SysApplication;

public class forgetPwdActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_forget_pwd);
        SysApplication.getInstance().addActivity(this);
    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {

        if (keyCode == KeyEvent.KEYCODE_BACK
                && event.getRepeatCount() == 0) {
            SysApplication.getInstance().exit();
            System.exit(0);
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }
}
